const mongoose = require("mongoose");
const schema = new mongoose.Schema({
  time: { type: String, required: true },
  user: { type: mongoose.SchemaTypes.ObjectId, ref: "User", require: true },
  tilte: { type: String, default: "优惠券" },
  value: { type: Number, default: 1 },
  describe: { type: String, default: "商品优惠券" }
})

module.exports = mongoose.model("Coupon", schema)